/* pages/experience-share/experience-share.wxss */
@primary-color: #3498db;
@success-color: #2ecc71;
@warning-color: #f39c12;
@danger-color: #e74c3c;
@card-bg: #fff;

.container {
  background-color: #f5f7fa;
  min-height: 100vh;
  padding: 20rpx;
}

.header {
  display: flex;
  align-items: center;
  padding: 30rpx 0;
  margin-bottom: 20rpx;
  
  .back-btn {
    width: 60rpx;
    height: 60rpx;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20rpx;
    
    .icon {
      font-size: 40rpx;
      color: @primary-color;
    }
  }
  
  .title {
    font-size: 36rpx;
    font-weight: bold;
    color: #2c3e50;
  }
}

.author-card {
  background: linear-gradient(135deg, #4a6fa5, #2c3e50);
  border-radius: 20rpx;
  padding: 40rpx 30rpx;
  display: flex;
  align-items: center;
  margin-bottom: 30rpx;
  color: white;
  box-shadow: 0 8rpx 20rpx rgba(44, 62, 80, 0.2);
  
  .avatar {
    width: 140rpx;
    height: 140rpx;
    border-radius: 50%;
    border: 4rpx solid rgba(255,255,255,0.3);
    margin-right: 30rpx;
  }
  
  .author-info {
    flex: 1;
    
    .name {
      font-size: 36rpx;
      font-weight: bold;
      display: block;
      margin-bottom: 10rpx;
    }
    
    .tag {
      background: rgba(255,255,255,0.2);
      padding: 6rpx 20rpx;
      border-radius: 30rpx;
      font-size: 24rpx;
    }
  }
  
  .stats {
    display: flex;
    margin-top: 20rpx;
    
    .stat-item {
      text-align: center;
      margin-right: 40rpx;
      
      .stat-value {
        font-size: 32rpx;
        font-weight: bold;
        display: block;
      }
      
      .stat-label {
        font-size: 24rpx;
        opacity: 0.8;
      }
    }
  }
}

.card {
  background: @card-bg;
  border-radius: 16rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
  padding: 30rpx;
  margin-bottom: 30rpx;
  
  .card-title {
    font-size: 32rpx;
    font-weight: bold;
    color: @primary-color;
    padding-bottom: 20rpx;
    margin-bottom: 20rpx;
    border-bottom: 2rpx solid #eee;
  }
  .suggestion-text{
    font-size: 30rpx;
    // font-weight: bold;
    color: #2c3e50;
  }
}

.journey {
  .phase {
    margin-bottom: 40rpx;
    padding: 25rpx;
    border-radius: 16rpx;
    position: relative;
    overflow: hidden;
    
    &::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      width: 8rpx;
      height: 100%;
    }
    
    &.failed::before {
      background: @danger-color;
    }
    
    &.success::before {
      background: @success-color;
    }
    
    .phase-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20rpx;
      
      .phase-title {
        font-size: 30rpx;
        font-weight: bold;
        color: #2c3e50;
      }
      
      .phase-tag {
        padding: 6rpx 20rpx;
        border-radius: 20rpx;
        font-size: 24rpx;
      }
      
      .failed & .phase-tag {
        background: lighten(@danger-color, 35%);
        color: darken(@danger-color, 15%);
      }
      
      .success & .phase-tag {
        background: lighten(@success-color, 40%);
        color: darken(@success-color, 15%);
      }
    }
    
    .phase-content {
      .tip {
        font-size: 26rpx;
        color: #34495e;
        margin-bottom: 15rpx;
        padding-left: 40rpx;
        position: relative;
        line-height: 1.6;
        
        &::before {
          position: absolute;
          left: 0;
          top: 0;
          font-size: 36rpx;
        }
      }
      
      .insight {
        margin-top: 25rpx;
        padding-top: 25rpx;
        border-top: 1rpx dashed #eee;
        
        .quote {
          font-style: italic;
          color: #7f8c8d;
          font-size: 26rpx;
          line-height: 1.6;
        }
      }
    }
  }
}

.truth {
  .truth-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30rpx;
    
    .truth-icon {
      font-size: 40rpx;
      margin-right: 20rpx;
      min-width: 50rpx;
    }
    
    .truth-content {
      flex: 1;
      
      .truth-title {
        font-size: 28rpx;
        font-weight: bold;
        color: #2c3e50;
        display: block;
        margin-bottom: 8rpx;
      }
      
      .truth-desc {
        font-size: 26rpx;
        color: #7f8c8d;
        line-height: 1.5;
      }
    }
  }
  
  .truth-highlight {
    background: #f8f9fa;
    border-radius: 12rpx;
    padding: 25rpx;
    margin: 30rpx 0;
    
    .highlight-text {
      font-size: 26rpx;
      font-weight: bold;
      color: @danger-color;
      display: block;
      margin-bottom: 15rpx;
    }
    
    .highlight-item {
      display: flex;
      align-items: flex-start;
      margin-bottom: 15rpx;
      
      .dot {
        font-size: 30rpx;
        margin-right: 15rpx;
        margin-top: 5rpx;
      }
      
      .text {
        font-size: 26rpx;
        color: #2c3e50;
        flex: 1;
        line-height: 1.6;
      }
    }
  }
  
  .final-message {
    text-align: center;
    padding: 30rpx 0;
    border-top: 1rpx dashed #eee;
    margin-top: 20rpx;
    
    .message {
      font-size: 32rpx;
      font-weight: bold;
      color: @primary-color;
      display: block;
      line-height: 1.6;
    }
    
    .encourage {
      font-size: 36rpx;
      font-weight: bold;
      color: @success-color;
      margin-top: 20rpx;
      animation: pulse 1.5s infinite;
    }
    
    @keyframes pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.05); }
      100% { transform: scale(1); }
    }
  }
}

.action-btn {
  background: linear-gradient(135deg, #4a6fa5, #2c3e50);
  color: white;
  border-radius: 50rpx;
  font-size: 32rpx;
  font-weight: bold;
  height: 90rpx;
  line-height: 90rpx;
  margin: 40rpx 0;
  box-shadow: 0 8rpx 20rpx rgba(44, 62, 80, 0.3);
}

.copy-btn {
  margin-top: 60rpx;
  width: 40%;
  background: #07c160;
  color: white;
}
.tip {
  margin-top: 30rpx;
  color: #888;
  font-size: 28rpx;
}